import request from '@/utils/request';

export async function view(params) {
  return request(`/eofficeserver/api/office/view?rid=${params.rid}`);
}

export async function history(params) {
  return request(`/eofficeserver/api/office/history?rid=${params.rid}`);
}

export async function historyDetail(params) {
  return request(`/eofficeserver/api/office/history/detail?rid=${params.rid}&version=${params.version}`);
}

export async function del(params) {
  return request(`/eofficeserver/api/office`, {
    method: 'DELETE',
    data: params,
  });
}
